<?php
//error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
require('./roots.php');
require($root_path.'include/inc_environment_global.php');


define('LANG_FILE','interconsulta.php');
define('NO_2LEVEL_CHK',1);
require_once($root_path.'include/inc_front_chain_lang.php');

$login=$_SESSION['sess_login_userid'];

$thisfile=basename(__FILE__);
$displayfile='interconsulta.php'.URL_APPEND;
$action='interconsulta.php'.URL_APPEND;

require_once($root_path.'include/care_api_classes/class_core.php');
require_once($root_path.'include/care_api_classes/class_interconsulta.php');
$core=new Core;
$interconsulta = new Interconsulta;

//  echo "<pre>";
//  var_dump($_REQUEST);
//  echo "</pre>";

$interconsulta->updateDataFromInternalArray($id);
   
$interconsulta->insertarBitacora($LDUsers.$login.$LDInterCerrar.$id);
$interconsulta->cerrar($motivo_cierre, $traslado, $noadherencia, $clasificacion, $comentarios_clasif);

$msj = $LDInterActualiza;

header("Location:".$root_path."main/startframe.php?noti=1&sid=$sid&lang=$lang");
///header("Location:interconsulta.php".URL_APPEND."&lang=$lang&msj=$msj");
exit;




?>
